<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
    <HEAD>
	<meta charset="UTF-8">
	<script src="http://userapi.com/js/api/openapi.js" type="text/javascript" charset="windows-1251"></script>
    <TITLE>Life Achivements</TITLE>
	<link href="auth.css" rel="stylesheet" type="text/css" />
    </HEAD>
<BODY>
	<div id="auth_wrap">
		<a id="a">Sign in with</a>
	<div id="vk_api_transport"></div>
	<div id="vk_login" onclick="doLogin()"></div>
	<script src="http://vkontakte.ru/js/api/openapi.js" type="text/javascript" charset="windows-1251"></script>
	<script type="text/javascript">
		window.vkAsyncInit = function() {
			VK.init({
				apiId: 2911329,
				nameTransportPath: '/xd_receiver.htm'
			});

			VK.UI.button('vk_login');
		};

		(function() {
			var el = document.createElement("script");
			el.type = "text/javascript";
			el.charset = "windows-1251";
			el.src = "http://vkontakte.ru/js/api/openapi.js";
			el.async = true;
			document.getElementById("vk_api_transport").appendChild(el);
		}());

		function doLogin() {
			VK.Auth.login(afterLogin);
		}

		function afterLogin (response) {
			window.location = '/vk.php';
		}
	</script>
	</div>
</BODY>
</HTML>


